import App from './App'
// 引入store，把vuex定义成全局组件
import store from './store/index.js'
Vue.prototype.$store = store
// // 引入axios
import axios from 'utils/http.js'
Vue.prototype.$axios = axios
//引入全局tools
import tools from './utils/tools.js'
Vue.prototype.$tools = tools

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView)

//引入linq.js使用用法参考：https://blog.csdn.net/Jo_liver/article/details/114404372
import Enumerable from 'utils/linq.min.js';
Vue.prototype.$Enumerable = Enumerable //赋值到vue里面

//引入router路由
import {
	router,
	RouterMount
} from './router.js' //路径换成自己的
Vue.use(router)

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
